package com.xian.cloud.config;

import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * @program: cloud-demo
 * @description:
 * @author: xlr
 * @create: 2019-08-08 16:27
 **/
@Component
@Data
public class NettyConstant {
    /**
     * 最大线程量
     */
    private static final int MAX_THREADS = 1024;
    /**
     * 数据包最大长度
     */
    private static final int MAX_FRAME_LENGTH = 65535;

    public static int getMaxFrameLength() {
        return MAX_FRAME_LENGTH;
    }

    public static int getMaxThreads() {
        return MAX_THREADS;
    }
}
